﻿using BCEntity.CRM.BigCustomerTradeAnalysis;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BCData.CRM.BigCustomerTradeAnalysis
{
    public interface IBigCustomerTradeAnalysisData
    {
        Task<bool> DeleteAsync(long bigCustomerTradeAnalysisId);
        Task<BigCustomerTradeAnalysisEntity> GetEntityAsync(long bigCustomerTradeAnalysisId);
        Task<(IEnumerable<BigCustomerTradeAnalysisEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        Task<BigCustomerTradeAnalysisEntity> InsertAsync(BigCustomerTradeAnalysisEntity entity);
        Task<BigCustomerTradeAnalysisEntity> UpdateAsync(BigCustomerTradeAnalysisEntity entity);
    }
}